import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {Organization} from './models/organization.entity';
// 将Organization的服务注入进模块
import { OrganizationService } from './organization.service';
import { OrganizationResolver } from './organization.resolver';
import { OrgImage } from '../orgImage/models/orgImage.entity';
import { OrgImageService } from '../orgImage/orgImage.service';

@Module({
    imports:[TypeOrmModule.forFeature([Organization,OrgImage])],
    providers:[OrganizationService, OrganizationResolver, OrgImageService],
    exports:[OrganizationService],
})
export class OrganizationModule {}